Shift Count is Out of Range (SCOR)

Description:

SCOR detects if the range of the shift count operand is not within [0,31] for the integer type, or [0,63] for the int64 type. It does not produce this message when the distance between maximum and minimum values of the shift count is greater than 255, so the message will not be reported if shift count is just a variable of integer type.

Incorrect:

const multiplier:integer = 32;
var x:integer;
...
x := x shl multiplier;